package com.cong.security.entity;

import com.cong.security.utils.UUIDUtil;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Account {
    private String id;

    private String userName;

    private String password;

    private Integer num;

    private Boolean locked;

    private Boolean enabled;

    private Boolean expired;

    private String role;

    private String state;

    /**
     * 短信注册构造函数
     *
     * @param userName
     *            用户名(手机号)
     */
    public Account(String userName) {
        super();
        this.id = UUIDUtil.getUUID();
        this.userName = userName;
        this.password = "1111";
    }
}